home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Czytniki RSS / RSS Bandit 1.3.0.42 / RssBandit Installer.msi / _172FF5180BC61D3C6D240F14338A23AA / _36535787994748F58949BABFE9EA9CB8 < prev    next >
Text File  |  2004-12-11  |  11KB  |  266 lines

  1.         <xsl:stylesheet version='1.0' 
  2.                 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
  3.                 xmlns:content = 'http://purl.org/rss/1.0/modules/content/'
  4.                 xmlns:xhtml='http://www.w3.org/1999/xhtml'
  5.                 xmlns:slash='http://purl.org/rss/1.0/modules/slash/'
  6.                 xmlns:dc='http://purl.org/dc/elements/1.1/' 
  7.                 exclude-result-prefixes='content slash dc'>
  8.           
  9.           <xsl:output method='xml' indent='yes' /> 
  10.  
  11.  
  12.           <!-- channel group newspaper -->
  13.           <xsl:template match="newspaper[@type='group']">
  14.             <html>
  15.               <head>
  16.             <title><xsl:value-of select='title'/></title>
  17.             <!-- <base href="{//channel/link}" /> -->
  18.             <style><![CDATA[
  19.             body    { 
  20.             background: #FF6600;
  21.             font-family:Verdana;Arial; 
  22.             font-size:11pt; 
  23.             margin:0pt; 
  24.             padding:0pt; }
  25.  
  26.             .headTable {
  27.             font-family:Arial, Helvetica, sans-serif;
  28.             Arial;
  29.             color:#FF6600;
  30.             cell-padding:2pt;
  31.             background:#000000;
  32.             padding: 5px;
  33.             margin-top: 5px;
  34.             }
  35.             
  36.             .title        {
  37.             font-size:14pt;
  38.             font-weight: bold;
  39.             font-family: Arial, Helvetica, sans-serif;
  40.             text-decoration: underline;
  41.             }
  42.             .date        {
  43.             font-size:9pt;
  44.             font-weight: bold;
  45.             }
  46.             div.content {
  47.             font-family:Verdana, Arial;
  48.             font-size:10pt;
  49.             margin:0pt 10pt 10pt;
  50.             padding:5pt;
  51.             background-color: #FF6600; }
  52.  
  53.             a:link      { color:#000000;text-decoration:none;font-weight:bold; }
  54.             a:visited   { color:#000000;text-decoration:none;font-weight: bold;}
  55.             a:hover         { color:#FFFFFF;text-decoration:underline;font-weight:bold; }
  56.             
  57.             td.channel a:link      { color:#FF6600;text-decoration:none;font-weight:bold; }
  58.             td.channel a:visited   { color:#FF6600;text-decoration:none;font-weight: bold;}
  59.             td.channel a:hover         { color:#FFFFFF;text-decoration:underline;font-weight:bold; }
  60.             
  61.             .dings         {
  62.             font-family: Webdings;
  63.             font-size: 36pt;
  64.             }        
  65.             .channel     { font-family: Arial, Helvetica, sans-serif;    font-size: 10pt; }
  66.             ]]></style>
  67.               </head>
  68.               <body>
  69.             <xsl:for-each select='//channel'>
  70.               <xsl:variable name='channeltitle'><xsl:value-of select='current()/title' /></xsl:variable>
  71.               <xsl:variable name='channellink'><xsl:value-of select='current()/link' /></xsl:variable>
  72.               <xsl:variable name='channeldesc'><xsl:value-of select='current()/description' /></xsl:variable>
  73.               <xsl:for-each select='current()//item'>
  74.                 <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="headTable">
  75.                   <tr> 
  76.                 <td width="30" rowspan="2" valign="top"><span class="dings">"</span></td>
  77.                 <td colspan="2" valign="bottom" class="title"><span class="title"><xsl:value-of disable-output-escaping='yes' select='current()/title' /></span></td>
  78.                   </tr>
  79.                   <tr> 
  80.                 <td valign="top" class="date"><xsl:value-of select='current()/pubDate'/></td>
  81.                 <td align="right" valign="top" class="channel"><a href='{$channellink}' title='{$channeldesc}'><xsl:value-of disable-output-escaping='yes'  select='$channeltitle'/></a></td>
  82.                   </tr>
  83.                 </table>
  84.                 <div class='content'>
  85.                   <xsl:choose> <xsl:when test='current()/xhtml:body'> <xsl:copy-of select='current()/xhtml:body'/> 
  86.                   </xsl:when> <xsl:when test='current()/content:encoded'> <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/> 
  87.                   </xsl:when> <xsl:otherwise> <xsl:value-of disable-output-escaping='yes' select='current()/description'/> 
  88.                   </xsl:otherwise> </xsl:choose> <br/>
  89.                   <br/>
  90.                   <a href='{current()/link}'>Read on...</a> <xsl:if test='current()/comments'> <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> 
  91.                   <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='current()/comments'/><xsl:text disable-output-escaping='yes'>'></xsl:text> 
  92.                   <xsl:value-of select='current()/slash:comments'/> Comments... <xsl:text disable-output-escaping='yes'></a></xsl:text>    
  93.                 </xsl:if> 
  94.               </div>
  95.               <p><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text></p>
  96.             </xsl:for-each>
  97.               </xsl:for-each>
  98.               </body></html>
  99.             </xsl:template>
  100.  
  101.             <!-- channel newspaper -->
  102.             <xsl:template match="newspaper[@type='channel']">
  103.               <html>
  104.             <head>
  105.               <title><xsl:value-of select='//channel/title'/></title>
  106.               <base href="{//channel/link}" />
  107.               <style><![CDATA[
  108.               body    { 
  109.               background: #FF6600;
  110.               font-family:Verdana;Arial; 
  111.               font-size:11pt; 
  112.               margin:0pt; 
  113.               padding:0pt; }
  114.  
  115.               .headTable {
  116.               font-family:Arial, Helvetica, sans-serif;
  117.               Arial;
  118.               color:#FF6600;
  119.               cell-padding:2pt;
  120.               background:#000000;
  121.               padding: 5px;
  122.               margin-top: 5px;
  123.               }
  124.               
  125.               .title        {
  126.               font-size:14pt;
  127.               font-weight: bold;
  128.               font-family: Arial, Helvetica, sans-serif;
  129.               text-decoration: underline;
  130.               }
  131.               .date        {
  132.               font-size:9pt;
  133.               font-weight: bold;
  134.               }
  135.               div.content {
  136.               font-family:Verdana, Arial;
  137.               font-size:10pt;
  138.               margin:0pt 10pt 10pt;
  139.               padding:5pt;
  140.               background-color: #FF6600; }
  141.  
  142.               a:link      { color:#000000;text-decoration:none;font-weight:bold; }
  143.               a:visited   { color:#000000;text-decoration:none;font-weight: bold;}
  144.               a:hover         { color:#FFFFFF;text-decoration:underline;font-weight:bold; }
  145.               
  146.               td.channel a:link      { color:#FF6600;text-decoration:none;font-weight:bold; }
  147.               td.channel a:visited   { color:#FF6600;text-decoration:none;font-weight: bold;}
  148.               td.channel a:hover         { color:#FFFFFF;text-decoration:underline;font-weight:bold; }
  149.               
  150.               .dings         {
  151.               font-family: Webdings;
  152.               font-size: 36pt;
  153.               }        
  154.               .channel     { font-family: Arial, Helvetica, sans-serif;    font-size: 10pt; }
  155.               ]]></style>
  156.             </head>
  157.             <body>
  158.               <xsl:for-each select='//item'>
  159.                 <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="headTable">
  160.                   <tr> 
  161.                 <td width="30" rowspan="2" valign="top"><span class="dings">"</span></td>
  162.                 <td colspan="2" valign="bottom" class="title"><span class="title"><xsl:value-of disable-output-escaping='yes' select='current()/title' /></span></td>
  163.                   </tr>
  164.                   <tr> 
  165.                 <td valign="top" class="date"><xsl:value-of select='current()/pubDate'/></td>
  166.                 <td align="right" valign="top" class="channel"><a href='{//channel/link}' title='{//channel/description}'><xsl:value-of disable-output-escaping='yes'  select='//channel/title'/></a></td>
  167.                   </tr>
  168.                 </table>
  169.                 <div class='content'>
  170.                   <xsl:choose> <xsl:when test='current()/xhtml:body'> <xsl:copy-of select='current()/xhtml:body'/> 
  171.                   </xsl:when> <xsl:when test='current()/content:encoded'> <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/> 
  172.                   </xsl:when> <xsl:otherwise> <xsl:value-of disable-output-escaping='yes' select='current()/description'/> 
  173.                   </xsl:otherwise> </xsl:choose> <br/>
  174.                   <br/>
  175.                   <a href='{current()/link}'>Read on...</a> <xsl:if test='current()/comments'> <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> 
  176.                   <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='current()/comments'/><xsl:text disable-output-escaping='yes'>'></xsl:text> 
  177.                   <xsl:value-of select='current()/slash:comments'/> Comments... <xsl:text disable-output-escaping='yes'></a></xsl:text>    
  178.                 </xsl:if> 
  179.               </div>
  180.               <p><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text></p>
  181.             </xsl:for-each>
  182.             </body></html>
  183.               </xsl:template>
  184.  
  185.               <!-- single news item -->
  186.               <xsl:template match="newspaper[@type='newsitem']">
  187.             <html>
  188.               <head>
  189.                 <title><xsl:value-of select='//item/title'/></title>
  190.                 <base href="{//item/link}" />
  191.                 <style><![CDATA[
  192.                 body    { 
  193.                 background: #FF6600;
  194.                 font-family:Verdana;Arial; 
  195.                 font-size:11pt; 
  196.                 margin:0pt; 
  197.                 padding:0pt; }
  198.  
  199.                 .headTable {
  200.                 font-family:Arial, Helvetica, sans-serif;
  201.                 Arial;
  202.                 color:#FF6600;
  203.                 cell-padding:2pt;
  204.                 background:#000000;
  205.                 padding: 5px;
  206.                 margin-top: 5px;
  207.                 }
  208.                 
  209.                 .title        {
  210.                 font-size:14pt;
  211.                 font-weight: bold;
  212.                 font-family: Arial, Helvetica, sans-serif;
  213.                 text-decoration: underline;
  214.                 }
  215.                 .date        {
  216.                 font-size:9pt;
  217.                 font-weight: bold;
  218.                 }
  219.                 div.content {
  220.                 font-family:Verdana, Arial;
  221.                 font-size:10pt;
  222.                 margin:0pt 10pt 10pt;
  223.                 padding:5pt;
  224.                 background-color: #FF6600; }
  225.  
  226.                 a:link      { color:#000000;text-decoration:none;font-weight:bold; }
  227.                 a:visited   { color:#000000;text-decoration:none;font-weight: bold;}
  228.                 a:hover         { color:#FFFFFF;text-decoration:underline;font-weight:bold; }
  229.                 
  230.                 td.channel a:link      { color:#FF6600;text-decoration:none;font-weight:bold; }
  231.                 td.channel a:visited   { color:#FF6600;text-decoration:none;font-weight: bold;}
  232.                 td.channel a:hover         { color:#FFFFFF;text-decoration:underline;font-weight:bold; }
  233.                 
  234.                 .dings         {
  235.                 font-family: Webdings;
  236.                 font-size: 36pt;
  237.                 }        
  238.                 .channel     { font-family: Arial, Helvetica, sans-serif;    font-size: 10pt; }
  239.                 ]]></style>
  240.               </head>
  241.               <body>
  242.                 <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="headTable">
  243.                   <tr> 
  244.                 <td width="30" rowspan="2" valign="top"><span class="dings">"</span></td>
  245.                 <td colspan="2" valign="bottom" class="title"><span class="title"><xsl:value-of disable-output-escaping='yes' select='//item/title' /></span></td>
  246.                   </tr>
  247.                   <tr> 
  248.                 <td valign="top" class="date"><xsl:value-of select='//item/pubDate'/></td>
  249.                 <td align="right" valign="top" class="channel"><a href='{//channel/link}' title='{//channel/description}'><xsl:value-of disable-output-escaping='yes'  select='//channel/title'/></a></td>
  250.                   </tr>
  251.                 </table>
  252.                 <div class='content'>
  253.                   <xsl:choose> <xsl:when test='//item/xhtml:body'> <xsl:copy-of select='//item/xhtml:body'/> 
  254.                   </xsl:when> <xsl:when test='//item/content:encoded'> <xsl:value-of  disable-output-escaping='yes' select='//item/content:encoded'/> 
  255.                   </xsl:when> <xsl:otherwise> <xsl:value-of disable-output-escaping='yes' select='//item/description'/> 
  256.                   </xsl:otherwise> </xsl:choose> <br/>
  257.                   <br/>
  258.                   <a href='{//item/link}'>Read on...</a> <xsl:if test='//item/comments'> <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> 
  259.                   <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='//item/comments'/><xsl:text disable-output-escaping='yes'>'></xsl:text> 
  260.                   <xsl:value-of select='//item/slash:comments'/> Comments... <xsl:text disable-output-escaping='yes'></a></xsl:text>    
  261.                 </xsl:if> 
  262.               </div>
  263.               <p><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text></p>
  264.               </body></html>
  265.             </xsl:template>
  266.               </xsl:stylesheet>